package com.klun.hdfs.Utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class PathGenerUtil {


    public static String getInputBasePath(String name){
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd-hh-mm-SSS");
        String format = sdf.format(date);
        String path  = "E:\\data\\input"+name+"-"+format;
        return path;
    }
    public static String getOutputPath(String name){
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd-hh-mm-SSS");
        String format = sdf.format(date);
        String path  = "E:\\data\\output\\"+name+"name-"+format;
        return path;
    }
}
